using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using DAO;
using DTO;

namespace BUS
{
    public class KhachHangBUS
    {
        public DataTable TimKhachHang(KhachHangDTO kh)
        {
            KhachHangDAO khdao = new KhachHangDAO();
            DataTable dt = khdao.TimKhachHang(kh);
            return dt;
        }
        public void Them(KhachHangDTO khdto)
        {
            KhachHangDAO khdao = new KhachHangDAO();
            khdao.Them(khdto);
        }
        public DataTable LayMaxMa()
        {
            KhachHangDAO khdao = new KhachHangDAO();
            return khdao.LayMaxMa();
        }
        public void Sua(KhachHangDTO khdto)
        {
            KhachHangDAO khdao = new KhachHangDAO();
            khdao.Sua(khdto);
        }
        public void Xoa(int makh)
        {
            KhachHangDAO khdao = new KhachHangDAO();
            khdao.Xoa(makh);
        }
        public DataTable TraCuuKH(string sql)
        {
            KhachHangDAO khdao = new KhachHangDAO();
            DataTable dt = khdao.TraCuuKH(sql);
            return dt;
        }
    }
}
